home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / i386msdos.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  733 b   |  39 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. ${RELOCATING+${LIB_SEARCH_DIRS}}
  6. ${STACKZERO+${RELOCATING+${STACKZERO}}}
  7. SECTIONS
  8. {
  9.   ${RELOCATING+. = ${TEXT_START_ADDR};}
  10.   .text :
  11.   {
  12.     CREATE_OBJECT_SYMBOLS
  13.     *(.text)
  14.     ${RELOCATING+etext = .;}
  15.     ${RELOCATING+_etext = .;}
  16.     ${RELOCATING+__etext = .;}
  17.   }
  18.   .data :
  19.   {
  20.     *(.rodata)
  21.     *(.data)
  22.     ${CONSTRUCTING+CONSTRUCTORS}
  23.     ${RELOCATING+edata  =  .;}
  24.     ${RELOCATING+_edata  =  .;}
  25.     ${RELOCATING+__edata  =  .;}
  26.   }
  27.   .bss :
  28.   {
  29.    ${RELOCATING+ _bss_start = .};
  30.    ${RELOCATING+ __bss_start = .};
  31.    *(.bss)
  32.    *(COMMON)
  33.    ${RELOCATING+end = ALIGN(4) };
  34.    ${RELOCATING+_end = ALIGN(4) };
  35.    ${RELOCATING+__end = ALIGN(4) };
  36.   }
  37. }
  38. EOF
  39.